package org.example.ychdp.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.ychdp.entity.Comment;
import org.example.ychdp.entity.Ticket;

import java.util.List;

@Mapper
public interface TicketDao {

    List<Ticket> selectAllTicket();

    int deleteByPrimaryKey(Integer ticketid);

    int insert(Ticket record);

    int insertSelective(Ticket record);

    Ticket selectByPrimaryKey(Integer ticketid);

    int updateByPrimaryKeySelective(Ticket record);

    int updateByPrimaryKey(Ticket record);

    List<Ticket> selectCommentsByConcertId(Integer concertid);
}